﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using Microsoft.Reporting.WinForms;


namespace AppAcc.Views.BaoCaoChungTu
{
    public partial class FormBaoCaoPhieuChi : Form
    {
        public FormBaoCaoPhieuChi()
        {
            InitializeComponent();
        }

        private string PC;
        public FormBaoCaoPhieuChi(string PC1)
        {
            InitializeComponent();
            PC = PC1.Trim();
        }
        private void FormBaoCaoPhieuChi_Load(object sender, EventArgs e)
        {
            this.pr_PhieuChiTableAdapter.Fill(this.dS_PhieuChi.pr_PhieuChi, PC);
            ReportParameter[] rptParams = new ReportParameter[]
            {
                new ReportParameter("SoPhieuChi",PC)           
            };
            reportViewer1.LocalReport.SetParameters(rptParams);
            this.reportViewer1.RefreshReport();
        }
    }
}
